package main

import (
	"fmt"
	"math/rand"
	time2 "time"
)

func main() {
	for i := 0; i < 10; i++ {

		//时间戳
		time := time2.Now()
		t := time.UnixNano()

		//设置随机种子数
		rand.Seed(t)

		num := rand.Intn(100)
		fmt.Printf("%p %d \n", &num, num)

		//如果获取5-48之间的，可以获取0-43 再+5
	}
}
